package io.github.luons.mediator.core.spi;

import lombok.Data;

import java.util.List;

/**
 * pageBean
 *
 * @author : luons
 */
@Data
public class PageBean<T> {

    /**
     * total
     */
    private Integer totalCount;

    /**
     * pageNumber
     */
    private Integer pageNumber;

    /**
     * pageSize
     */
    private Integer pageSize;

    /**
     * List<T>
     */
    private List<T> data;

    public PageBean() {
    }

    public PageBean(List<T> data) {
        this.data = data;
    }

    public PageBean(Integer pageNumber, Integer pageSize) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
    }

}
